
(function ($) {
	var userid=$('input[name=userid]').attr('value');
	var methods = {
	        update: function (content) {
	            var html ='<div class="header">'
							+'<div class="float-r header-center">'
								+'<a class="pr10" href="/WDDXSERVER/home.jsp">'+"智行校园首页"+'</a>'
								+'<a class="pr10" href="/WDDXSERVER/html/personal_center/message.jsp">'+"消息"+'</a>'
								+'<a class="pr10" href="/WDDXSERVER/html/personal_center/own_info.jsp">'+user_name+'</a>'
								+'<a class="pr10" href="/WDDXSERVER/login/loginOut?userid='+user_id+'">'+"退出"+'</a>'
								+'<div class="margin-r120 header-Hammer-center" style="margin-top:1.3em"><img  class="header-Hammer-center" src="'+content["faceaddress"]+'" /></div>'
							+'</div>'
							+'<div class="clear-b">'
							+'</div>'
						+'</div>'
				$('body').prepend(html);
	        }
	    };
	$.ajax({
		type: 'GET',
		url:'/WDDXSERVER/login/getSTUDENTDATA?ticket='+ticket,
		data:{userid:userid},
		dataType: "text",
		success: function(data){
			var d = eval('('+data+')');
			methods.update(d);
			},
		});
    
})(jQuery);